﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ProgNetComponentsDx.Options;

namespace BuildHelper.Scheduler
{
    public partial class ZadanieJavaBuild : ZadanieParamsControl
    {
        public ZadanieJavaBuild()
        {
            InitializeComponent();
        }
        public override void SetDefault()
        {
            base.SetDefault();
            //lueServer.EditValue = OptionCache.GetOptionValue(Init.InitFormOptionNames.Rozne_Group.StatusBar.DefServer);
            ceDeploy.Checked = true;
            ceInfo.Checked = true;
            ceZmieniajBuildXml.Checked = OptionCache.GetOptionBoolValue(Init.InitFormOptionNames.Work_Group.Java.ZmieniajBuildXml);
        }

        private void lueBrancz_EditValueChanged(object sender, EventArgs e)
        {
            int server = browserProvider1.GetColumnValueForEditValue(lueBrancz, "STP_BR_SERWER").AsInt(-1);
            if (server > -1)
                lueServer.EditValue = server;
            else
                lueServer.EditValue = DBNull.Value;
        }
    }
}
